package com.xuwang.pojo;


import java.util.List;

/**
 * 普通用户表(User)实体类
 *
 * @author smallseven
 * @since 2021-09-13 09:50:17
 */

public class User {

    /**
     * 用户头像
     */

    private String img;
    /**
     * 职业
     */
    private String profession;
    /**
     * 婚姻状态
     */
    private Integer married;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 用户等级
     */
    private Integer userLevel;
    /**
     * 用户名
     */
    private String username;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 密码
     */
    private String password;
    /**
     * token
     */
    private String token;

    /**
     * 手机验证码
     */
    private Integer phoneCode;

    /**
     * 用户旗下的餐馆
     */
    private List<Restaurant> restaurants;

    /**
     * 用户身份
     */
    private Integer identity;

    /**
     * 用户的
     */
    private Comment comment;

    public Comment getComment() {
        return comment;
    }

    public void setComment(Comment comment) {
        this.comment = comment;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }

    public Integer getPhoneCode() {
        return phoneCode;
    }

    public void setPhoneCode(Integer phoneCode) {
        this.phoneCode = phoneCode;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public Integer getMarried() {
        return married;
    }

    public void setMarried(Integer married) {
        this.married = married;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<Restaurant> getRestaurants() {
        return restaurants;
    }

    public void setRestaurants(List<Restaurant> restaurants) {
        this.restaurants = restaurants;
    }

    @Override
    public String toString() {
        return "User{" +
                "img='" + img + '\'' +
                ", profession='" + profession + '\'' +
                ", married=" + married +
                ", sex=" + sex +
                ", userLevel=" + userLevel +
                ", username='" + username + '\'' +
                ", id=" + id +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", token='" + token + '\'' +
                ", phoneCode=" + phoneCode +
                ", restaurants=" + restaurants +
                ", identity=" + identity +
                '}';
    }
}
